Repository navigation
Conversation
|
iOS build and unit tests: the first No screenshots: the simulator runs only on the Mac mini, and the owner said iOS shots may be skipped. |
# Conflicts: # ios/WhatToTest.md
IOS-023 went to the SSH hosts doc on main (#1121).
…eader In a terminal the toast covered the title capsule. It now shows at the bottom, where the Reconnecting note shows, and the top shows none. Only the latest screen with a toast host shows the toast: a sheet over a terminal, a terminal over the list.
# Conflicts: # ios/GoRex/GoRexApp.swift
|
In a terminal, the toast now shows above the key bar, where the Reconnecting note shows, not over the header. iOS test on 3b9e131: https://github.com/si-mods/gorex/actions/runs/45577800169 (passed). Two earlier runs failed only because the shared DerivedData on the Mac mini held a Tailnet module built from another go.sum; merging main fixed it. |
Refs #1095
Problem
Rex Go tells the user that their own action failed with a modal alert that has only an OK button, for example "Can't Split the Pane". The alert stops the work, and there is nothing to decide. An upload shows only a spinner on the key bar, says nothing when it succeeds, and a failure is a modal alert with no way to retry. When notifications are off, the app says nothing.
Change
Design doc:
docs/IOS-024-toasts.md.ios/GoRex/Views/Toast.swift). The app shows one toast at a time, as a glass capsule at the top centre, over every screen. In a terminal it shows at the bottom centre instead, above the key bar and the pane bar, where the Reconnecting note shows, so it does not cover the terminal's header. Only the latest screen with a toast host shows it: a sheet over a terminal, a terminal over the list. Kinds: status (with an error variant), progress (it turns into its result in the same place). VoiceOver announces each toast once, and the toast never takes focus. Under Reduce Motion it cross-fades in 150 ms. Swipe it toward its edge to dismiss it.HostSection.swift,TerminalScreen.swiftandHostListView.swiftare error toasts now. The alerts that offer a fix stay alerts, for example Folder Not Found with Close Project.Delete Space keeps its confirm alert, by the owner's decision: this PR adds no Undo for it.
Open
The upload stream (
upload_begin,startUploadStreamininternal/rexapi/upload.go) returns no path, so the toast cannot name the folder. The upload stream is part of the wire protocol, anddocs/irreversible.mdasks for an owner decision before a change to it.Test
ToastTests(lifetimes, a stale timer is ignored, a result is announced when nothing shows, progress settles, Retry stays, sheet hosts hide the root),UploadTests.testRetrySendsOnlyTheUnsent.ios-testworkflow builds it and runs the tests on the Mac mini.Screenshots
iPhone 17 simulator (iOS 27.0) against a real gorex server + rexapi gateway on the Mac mini (demo mode cannot upload). Before: the merge-base
0a8bb00; after: this branch, same steps in one throwaway XCUITest. The failure shots kill the session mid-upload, which is why "The tab closed." sits behind the alert/toast.The "Uploading N files" progress toast is not captured: 180 MB clears a loopback stream in seconds, so every shot lands after it settled. The Settings row shows the notDetermined "Turn On" state; the denied ("Open Settings" + footer) and on ("On") states are not covered.
Verified: go run ./tools/verify: design docs passed; ios xcodebuild NOT VERIFIED here (no Xcode); the iOS test workflow run is linked in a comment